<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link href="__PUBLIC__/css/__PUBLIC__.css" type="text/css" rel="stylesheet">
        <link href="__PUBLIC__/css/houtai.css" type="text/css" rel="stylesheet">
        <link href="__PUBLIC__/css/smartMenu.css" type="text/css" rel="stylesheet">
        <link href="__PUBLIC__/css/layout.css" type="text/css" rel="stylesheet" />
        <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
        
        <title>快吃管理系统</title>
    </head>
    <body>
    	<div id="admin">
    		<div class="ad-menu" id="ad-menu">
                <div class="ad-logo"><span style="font-size:15px; color:#fff; margin-left:30px; font-weight:bold">快吃管理系统</span></div>
                <div class="ad-list">
                    <ul>
                        {if condition="session('username') eq 'root'"}

                        <li>
                            <div class="li-item"><em class="scm li-ico ic1"></em>食堂管理<span class="scm arrow"></span></div>
                            <dl>
 
                                <dd><a href="{:url('Canteen/canteenmessage')}" target="iframe0" class="dd-item">食堂基本信息管理<span class="scm dd-ar"></span></a></dd>
                                <dd><a href="http://119.29.135.20:8080/1576701411/portal/PortalIndex!show.action?income=menu&pageId=42269f8c9abb4b24840f85db9e46b1f7" target="_blank" class="dd-item">食堂就餐情况统计<span class="scm dd-ar"></span></a></dd>
                            </dl>
                        </li>

                        <li>
                            <div class="li-item"><em class="scm li-ico ic7"></em>用户管理<span class="scm arrow"></span></div>
                            <dl>
                                <dd><a href="{:url('UserType/index')}" class="dd-item" target="iframe0">管理员<span class="scm dd-ar"></span></a></dd>
                            </dl>
                        </li>
                        {else /}              
                        <li>
                            <div class="li-item"><em class="scm li-ico ic3"></em>菜单管理<span class="scm arrow"></span></div>
                            <dl>
                                <dd><a href="{:url('Foodclass/index')}" class="dd-item" target="iframe0">菜品类型管理<span class="scm dd-ar"></span></a></dd>
                                <dd><a href="{:url('Foodmessage/index')}" class="dd-item" target="iframe0">菜品基本信息管理<span class="scm dd-ar"></span></a></dd>
                            </dl>
                        </li>
                        <li>
                            <div class="li-item"><em class="scm li-ico ic4"></em>订餐管理<span class="scm arrow"></span></div>
                            <dl>
                                <dd><a href="#" class="dd-item" target="iframe0">未完成<span class="scm dd-ar"></span></a></dd>
                                <dd><a href="#" class="dd-item" target="iframe0">今日已完成<span class="scm dd-ar"></span></a></dd>
                                <dd><a href="#" class="dd-item" target="iframe0">往期订餐<span class="scm dd-ar"></span></a></dd>
                            </dl>
                        </li>
                        {/if}

                    </ul>
                </div>
            </div>
    		<div class="ad-comment-box" id="ad-comment">
                <div class="ad-top-comment">
                    <div class="ad-message">
                        <div class="ad-top-left">
                            <div class="ad-change-btn"><a id="ad-list" href="javascript:;" class="scm ad-list-btn"></a></div>
                            <div class="ad-search-box clear">

                            </div>
                        </div>
                        <div class="ad-top-right" style="margin:0px;padding:0px">

                            <div class="ad-welcom">
                                <div class="ad-wel-text">
                                    <div class="font-wel" style="margin-top:10px;">欢迎您！<strong>{:session('username')}</strong><a href="{:url('Login/loginout')}"><strong style="margin-left:10px">退出</strong></a></div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="ad-main-comment J_mainContent" id="ad-iframe">
                    <iframe id="main_iframe" class="J_iframe" name="iframe0" width="100%" height="100%" src="message.html" frameborder="0" data-id="index_v0.html" seamless>

					</iframe>
                </div>
    		</div>
    	</div>
        <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/contabs.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/maintabs.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/jquery-smartMenu-min.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/jquery.nicescroll.min.js"></script>
        <script type="text/javascript">
            $(function(){
                $(".ad-menu").niceScroll({cursorborder:"0 none",cursorcolor:"#1a1a19",cursoropacitymin:"0",boxzoom:false});
            })
        </script>
    </body>

    <script>
    $(document).ready(function(){
        $mainheight = $(window).height()-60;
        $("#ad-iframe").height($mainheight);
    });
 </script>
</html>